package com.base.invoke.enums;

/**
 * 异常枚举code
 * @author coolpig
 * @date 2019-09-27
 */
public enum ExCodeEnum {

    CODE_0("0", "成功"),
    CODE_1("1", "参数不能为空"),
    CODE_2("2", "验证失败"),
    UNKONW_ERROR("99999", "未知错误");


    // 成员变量
    private String code;
    private String msg;

    ExCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    // 获取 成员变量
    public String getCode() {
        return this.code;
    }

    // 设置 成员变量
    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
